package cn.itxc.demo.holder;

/**
 * Created by Gavin on 2017/6/20.
 */
public class UserHolder {
    private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();

    public static String getUser(){
        return contextHolder.get();
    }

    public static void setUser(String user ){
        contextHolder.set(user);
    }
}
